-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Security Solution] migrate to new GET metadata list API #119123
[Security Solution] migrate to new GET metadata list API #119123
Conversation
223af0a
to
ed4b32b
Compare
ed4b32b
to
1aaf9ca
Compare
💛 Build succeeded, but was flaky
Test Failures
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
Pinging @elastic/security-onboarding-and-lifecycle-mgt (Team:Onboarding and Lifecycle Mgt) |
dispatch({ | ||
type: 'serverReturnedEndpointList', | ||
payload: response, | ||
}); | ||
|
||
dispatchIngestPolicies({ http: coreStart.http, hosts: response.hosts, store }); | ||
dispatchIngestPolicies({ http: coreStart.http, hosts: response.data, store }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was initially trying to migrate this to react query and hooks but there are some other dependencies on the data here in the middleware so probably best to scope that into its own ticket.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments. let me know your thoughts on them or reach out if you have any questions.
x-pack/plugins/security_solution/public/management/pages/endpoint_hosts/mocks.ts
Show resolved
Hide resolved
x-pack/plugins/security_solution/server/endpoint/routes/metadata/handlers.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
…119506) Co-authored-by: Joey F. Poon <[email protected]>
Summary
Migrate frontend to use new GET metadata list API introduced in #118968. No functional differences.
Also addressing some comments on the GET API from #118968.
Behavior is unchanged:
Checklist
For maintainers